<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>打印倒正金字塔直线</title>
		
	</head>
	<body>
		<script type="text/javascript">
			var line=parseInt(prompt("输入倒正金字塔直线高度",""));
			document.write("<h1>打印倒正金字塔直线</h1>");
			for(var i=line;i>1;i--){
				var kuan=40*i-30+"px";
				document.write("<hr width="+kuan+"/>")
			}
			for(var i=0;i<line;i++){			
				var kuan=40*i+10+'px';
				document.write("<hr width="+kuan+"/>")
			}
		</script>
	</body>
</html>
